package com.mypro.jvm;

import com.mypro.java8.CollectionTest;

/**
 * Author: 玄夏
 * Date: 2018/5/3 11:18
 * Description:
 */
public class ClassLoaderTest {

    public static void main(String[] args) throws ClassNotFoundException {
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        System.out.println(classLoader);
        System.out.println(classLoader.getParent());
        System.out.println(classLoader.getParent().getParent());

        ClassLoader classLoader0 =  CollectionTest.class.getClassLoader();
        classLoader0.loadClass("com.mypro.java8.CollectionTest");

    }

}
